<template>
  <view class="acme-avatar" :style="{width: size, height: size, borderRadius: size}">
    <image :src="src" v-if="src" :style="{borderRadius: round ? size : '8rpx'}"></image>
  </view>
</template>

<script>
  export default {
    name: 'AcmeAvatar',
    props: {
      src: {
        type: String,
        default: ''
      },
      size: {
        type: String,
        default: '100rpx'
      },
      round: {
        type: Boolean,
        default: true
      }
    },
    data() {
      return {
        
      }
    },
    methods: {
      
    }
  }
</script>

<style lang="scss" scoped>
  @import './index.scss';
</style>
